import akshare as ak

# 获取单个股票的历史数据，前复权,日期格式yyyymmdd
def getSingleStockHistory(stockCode, startDate, endDate):
    stock_zh_a_hist_df = ak.stock_zh_a_hist(symbol=stockCode, period="daily", start_date=startDate, end_date=endDate, adjust="qfq")
    return stock_zh_a_hist_df